/**
 * 整个项目api管理
 */

import request from './request'
export default{
    getTableData(params){
        return request({
            url:'/home/getData',
            method:'get',
            data:params,
            mock:true
        })
    },
    getCountData(){
        return request({
            url:'/home/getCountData',
            method:'get',
            mock:true
        })
    },
    //根据用户名不同返回不同菜单
    getMenu(params){
        return request({
            url:'/permission/getMenu',
            method:'post',
            mock:false, //本地mock
            data:params
        })
    }
}